import { createRouter, createWebHistory } from "vue-router"
import Home from '../views/home/index.vue'
import Fenlei from '../views/fenlei/index.vue'
import Gouwuche from '../views/gouwuche/index.vue'
import Wode from '../views/wode/index.vue'
import Sousuo from '../views/sousuo/index.vue'
import Login from '../views/login/index.vue'
const routes = [
    {
      path: '/',
      redirect: '/home'
    },
    {
        path: '/home',
        name: 'home',
        component: Home,
        meta:{is_footer:true}
    },
    {
        path: '/fenlei',
        name: 'fenlei',
        component: Fenlei,
        meta:{is_footer:true}
    },
    {
        path: '/sousuo',
        name: 'sousuo',
        component: Sousuo,
        meta:{is_footer:true}
    },
    {
        path: '/gouwuche',
        name: 'gouwuche',
        component: Gouwuche,
        meta:{is_footer:true}
    },
    {
        path: '/wode',
        name: 'wode',
        component: Wode,
        meta:{is_footer:false}
    },
    {
        path: '/login',
        name: 'login',
        component: Login,
        meta:{is_footer:false}
    },
]
const router = createRouter({
    history: createWebHistory(),
    routes
  })
export default router